<div class="app-news-create app-inner">
    <h1>创建新闻</h1>
    <form class="container" name="news" ng-submit="goToCreateNews()">
        <div class="row">
            <div class="col-lg-2">
                <label for="news_title">新闻标题：</label>
            </div>
            <div class="col-lg-4">
                <input type="text" id="news_title" name="title" ng-model="data.title"  ng-required="true" placeholder="请输入新闻标题">
            </div>
            <div class="col-lg-6">
                <span class="text-danger" ng-show="news.title.$dirty&&news.title.$invalid">请输入新闻标题</span>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-2">
                <label for="news_writer">新闻作者：</label>
            </div>
            <div class="col-lg-4">
                <input type="text" id="news_writer" name="writer" ng-model="data.writer"  ng-required="true" placeholder="请输入新闻作者">
            </div>
            <div class="col-lg-6">
                <span class="text-danger" ng-show="news.writer.$dirty&&news.writer.$invalid">新闻作者是必填的</span>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-2">
                <label for="news_content">新闻内容：</label>
            </div>
            <div class="col-lg-4">
                <textarea name="content" id="news_content" ng-model="data.content" ng-required="true"  placeholder="请输入新闻内容"></textarea>
            </div>
            <div class="col-lg-6">
                <span class="text-danger" ng-show="news.content.$dirty&&news.content.$invalid" >必须填写新闻内容</span>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-10 col-lg-offset-2">
                <button type="submit" class="btn btn-success" ng-disabled="news.$invalid">提交</button>
            </div>
        </div>
    </form>
</div>